<template>
    <MatchQuestion 
        :activity="activity" 
        :setduration="setduration" 
        :isnot="isnot"
        variant="ojSass" 
        @rowClick="handleRowClick"
    />
</template>

<script setup lang="ts">
import MatchQuestion from '../../../components/MatchQuestion.vue'
import Studycodemodel from "../../../mysql_interface/studycodemodel";

type SMP = {
    activity: Studycodemodel.Iactivity
    setduration: (data: { activityendtime: Date, activitystarttime: Date }) => void
    isnot: { err: number; msg: string },
}

const emit = defineEmits(['rowClick'])
defineProps<SMP>()

function handleRowClick(row: any) {
    emit('rowClick', row)
}
</script>

<style scoped>
.match-question-table {
    /* 高度计算需要重构 */
    /* height: calc(100vh - 64px - var(--container-margin)* 5 - var(--container-header-height)); */
    margin: 0;
}
</style>